package com.dhnsoft.boot3.rpc.service;

import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RequestHeader;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.service.annotation.GetExchange;
import reactor.core.publisher.Mono;

/**
 * @author dhn
 * @version 1.0
 * @date 2023-09-12 11:50
 * @Desc
 */
@Service
public interface WeatherInterface {


    @GetExchange(url = "https://ali-weather.showapi.com/area-to-weather-date",accept = "application/json")
    Mono<String> getWeather(@RequestParam("area") String city, @RequestHeader("Authorization") String auth);
}
